
import service from '../utils/request'
import service1 from '../utils/request1'
//获取花名册
export function staff_list1(payload = {}) {
    return service1.get('/api/stafflist',  {params:payload} )
}
//搜索花名册
export function staff_search1( payload = {} ){
    return service1.get('/api/stafflist/search',{params:payload});
}
//删除花名册
export function staff_delete1( payload = {} ){
    return service1.get('/api/stafflist/delete', {params:payload});
}
//添加花名册
export function staff_add1( payload = {} ){
    return service1.get('/api/stafflist/add', {params:payload} );
}
//编辑花名册
export function staff_edit1( payload = {} ){
    return service1.get('/api/stafflist/edit', {params:payload} );
}
//查看花名册详情
export function staff_employee( payload = {} ){
    return service1.get('/api/stafflist/employee', {params:payload} );
}
//员工档案列表
export function record_list1(payload = {}) {
    return service1.get('/api/record/list',  {params:payload} )
}

//删除员工档案
export function record_delete1(payload = {}) {
    return service1.get('/api/record/delete', {params:payload} )
}
//添加员工档案
export function record_add1(payload = {}) {
    return service1.get('/api/record/add', {params:payload} )
}
//编辑员工档案
export function record_edit1(payload = {}) {
    return service1.get('/api/record/edit',  {params:payload} )
}
//查询员工档案
export function record_search1(payload = {}) {
    return service1.get('/api/record/search',  {params:payload} )
}
//查看详情
export function record_id1(payload = {}) {
    return service1.get('/api/record/id',  {params:payload} )
}

//入职管理列表
export function entry_list1(payload = {}) {
    return service1.get('/api/entry/list',  {params:payload} )
}
//查询
export function entry_start(payload = {}) {
    return service1.get('/api/entry/stat',  {params:payload} )
}
//新增入职管理
export function entry_add1(payload = {}) {
    return service1.get('/api/entry/add',  {params:payload} )
}
//删除入职管理
export function entry_delete1(payload = {}) {
    return service1.get('/api/entry/delete',  {params:payload} )
}
//编辑入职管理
export function entry_edit1(payload = {}) {
    return service1.get('/api/entry/edit',  {params:payload} )
}
//人事审批
export function form_list1(payload = {}) {
    return service1.get('/api/form',  {params:payload} )
}

//人事审批修改1
export function form_edit1(payload = {}) {
    return service1.get('/api/form/editone',  {params:payload} )
}
//人事审批修改2
export function form_edit2(payload = {}) {
    return service1.get('/api/form/edittwo',  {params:payload} )
}

//数据表图
export function census(payload = {}) {
    return service1.get('/api/census',  {params:payload} )
}
export function type_list(payload = {}) {
    return service1.get('/api/type',  {params:payload} )
}
export function major_list(payload = {}) {
    return service1.get('/api/major',  {params:payload} )
}
















// //获取人数
// export function Employee1_list(payload = {}) {
//     return service.get('/Employee1',  {params:payload} )
// }
// //获取花名册
// export function staff_list1(payload = {}) {
//     return service.get('/stafflist',  {params:payload} )
// }

// //新增员工
// export function staff_add( payload = {} ){
//     return service.post('/stafflist', payload );
// }

// //编辑员工
// export function staff_edit( payload = {} ){
//     return service.patch(`/stafflist/${payload.id}`, payload );
// }

// //删除员工
// export function staff_delete( payload = {} ){
//     return service.delete('/stafflist/'+payload.id, payload );
// }
// //模糊查询员工
// export function staff_search( payload = {} ){
//     return service.get('/stafflist', { params: payload  } );
// }
// //查看详情
// export function staff_info( payload = {} ){
//     return service.get('/stafflist/'+payload.id, { params: payload  } );
// }
// //查看员工档案
// export function record_list(payload = {}) {
//     return service.get('/recordlist',  {params:payload} )
// }
// //删除员工档案
// export function record_delete( payload = {} ){
//     return service.delete('/recordlist/'+payload.id, payload );
// }
// //添加员工档案
// export function record_add( payload = {} ){
//     return service.post('/recordlist', payload );
// }

// //查看档案详情
// export function record_info( payload = {} ){
//     return service.get('/recordlist/'+payload.id, { params: payload  } );
// }
// //编辑档案
// export function record_edit( payload = {} ){
//     return service.patch(`/recordlist/${payload.id}`, payload );
// }
//查看审批表
// export function approval_list(payload = {}) {
//     return service.get('/approvalList',  {params:payload} )
// }
// //修改审批表
// export function approval_edit( payload = {} ){
//     return service.patch(`/approvalList/${payload.id}`, payload );
// }
// //查看入职
// export function entry_list(payload = {}) {
//     return service.get('/entrylist',  {params:payload} )
// }
// //修改状态
// export function entry_edit( payload = {} ){
//     return service.patch(`/entrylist/${payload.id}`, payload );
// }
// //删除
// export function entry_delete( payload = {} ){
//     return service.delete('/entrylist/'+payload.id, payload );
// }
//添加人事规则
export function personnel_add( payload = {} ){
    return service.post('/personnel', payload );
}
//获取人事规则详情
export function personnel_info( payload = {} ){
    return service.get('/personnel/'+payload.id, { params: payload  } );
}
//获取人事规则
export function personnel_list( payload = {} ){
    return service.get('/personnel', { params: payload  } );
}
//编辑人事规则
export function personnel_edit( payload = {} ){
    return service.patch(`/personnel/${payload.id}`, payload );
}